<?php
/**
 * entrance
 * load const
 * auto include phpfile
 * start framework and run
 * Time: 21:42
 */
define("ENTRANCE",end(explode(DIRECTORY_SEPARATOR,__DIR__)));
include __DIR__ .'/../'. DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "const_config.php";
include __DIR__ .'/../'. DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "run_level.php";

include CORE.'\commom\waf.php';
include CORE.'\commom\function.php';

include CORE.'\framework.php';
include CORE.'\ClassLoader.php';

spl_autoload_register("\core\ClassLoader::loader");//add a namespace

//$eee = (\core\lib\Queryinfom::Newinstance());
//$rrr = \core\lib\MAPProter::Newinstance($eee->MAPPurl());
//\core\p($rrr->forder);
//\core\p($rrr->ctl);
//\core\p($rrr->action);
//
//$rre = \core\lib\APPloader::MAPPloader($rrr->forder,$rrr->ctl);
//\core\p($eee->Baseurl());
//\core\p(\core\lib\APPloader::MCtlloader($rrr->forder,$rrr->ctl));
//die("test");

\core\Framework::run();


